package com.maxd.bean.requirement;

import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;
import javax.validation.constraints.Pattern;

@Data
public class UpdateRequireStatusReq {

    @ApiModelProperty(value = "自增主键", required = true)
    @NotNull(message = "记录ID不能为空")
    private Long id;

    @ApiModelProperty(value = "处理状态 0-待处理 1-处理中 2-完成 3-取消", required = true)
    @NotBlank(message = "处理状态不能为空")
    @Pattern(regexp = "[0123]", message = "处理状态输入不正确")
    private String status;

    @ApiModelProperty("处理备注")
    private String remark;

}
